

import rpyc

schema_name = None # to be set by system

class Population(object):
    def __init__(self, pop_name):
        self.conn = rpyc.connect_by_service("FRONTEND")
        self.server = self.conn.root
        self.server.schema_name = schema_name
        self.server.pop_name = pop_name
        self.server.set_population(schema_name, pop_name, -1)

    def set_script(self, script_name, file_name, class_name, input_size=None):
        self.server.set_script(script_name, file_name, class_name, input_size)
    
    def set_max_inds(self, max_inds):
        pass
    
    